home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / win / med-lib / mdctrl.z / MDCTRL.TBK (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1996-03-05  |  57.5 KB  |  1,647 lines

  1. System
  2. gD|D|}
  3. INT mdOpen(WORD, STRING, 
  4. ", LONG, 
  5. mdCtrl
  6. Arial
  7. fileName
  8. C:\SONY\VIDEO\537testi.avi
  9. C:\SONY\VIDEO\537testi.avi
  10. :PRINTLAYOUT
  11. Arial
  12. System
  13. exitbook
  14. mdCtrl.dll
  15. F,25f
  16. Open_Btn
  17. 4FileHandle
  18. ofilename 
  19. FileNameIn
  20. xCoor 
  21. yCoor 
  22. B"ctrlModeless" 
  23. B"ctrlModal" 
  24. B"ctrlMlessNoCB" 
  25. mdOpen(sysclienthandle, (
  26. , 10, 0, 0, 0, 2, 0) 
  27. B"Move_Btn" 
  28. mdSetWindowMoveable(
  29. mdTimedDelay(.3)
  30. "Get"
  31. B"gPlay" 
  32. SetFocus(sysClientHandle)
  33. buttonDown
  34. buttonDown
  35. filename
  36. xCoor
  37. yCoor
  38. ctrlModeless
  39. ctrlModeless
  40. ctrlModal
  41. ctrlMlessNoCB
  42. filename
  43. mdOpen
  44. Move_Btn
  45. mdSetWindowMoveable
  46. 333333
  47. mdTimedDelay
  48. buttondown
  49. gPlay
  50. buttonup
  51. yCoor
  52. xCoor
  53. FileNameIn
  54. FileHandle
  55. fileName
  56. c:\amers03.avi
  57. Close_Btn
  58. 4FileHandle
  59. mdClose(
  60. let file close
  61. mdTimedDelay(.3)
  62. "Get"
  63. B"gPlay" 
  64. buttonup
  65. buttonup
  66. mdClose
  67. 333333
  68. mdTimedDelay
  69. buttondown
  70. gPlay
  71. buttonup
  72. FileHandle
  73. Close
  74. Browse_Btn
  75. getVideoFile
  76. FileNameIn 
  77. fileName 
  78. B"Open_Btn"
  79. buttondown
  80. buttondown
  81. getVideoFile
  82. Open_Btn
  83. fileName
  84. linkMediaDynamicsDLL
  85. sysDrawDirect 
  86.     linkDLL "tbkdlg.dll"
  87.     STRING OpenDlg(
  88. 6USER"
  89.         WORD SetFocus(
  90. a/v" 
  91. "close a/v" 
  92. "play a/v" 
  93. a/v" 
  94. "Import" 
  95. "Export" 
  96. "PrintReport" 
  97. "Tutorial" 
  98. "Keyboard" 
  99. "Commands" 
  100. "UsingHelp" 
  101. "Glossary" 
  102. "Index" 
  103. openAV
  104. B"Open_Btn"
  105. closeAV
  106. B"Close_Btn"
  107. playAV
  108. B"Play_Btn"
  109. pauseAV
  110. B"Pause_Btn"
  111. exitbook
  112.     unlinkDLL "mdCtrl.
  113. getVideoFile
  114. ".", "*.avi", "Select a video file.", "
  115. fileName 
  116. FileNameIn 
  117. GetAVStatus
  118. 4FileHandle,AVState
  119. mdGetPlayState(
  120. "closed"
  121. "playing"
  122. "seeking"
  123. "paused"
  124. "stopped"
  125. "playState" 
  126. Prototypes:
  127. Control Functions
  128. mdOpen
  129.  , LONG, 
  130. mdOpenLite
  131. mdClose
  132. mdPlay
  133. mdPause
  134. mdStep
  135. mdStop
  136. mdGotoFrame
  137. mdRewind
  138. mdRestart
  139. mdOpenDevice
  140. mdCloseDevice
  141. -- ***
  142. Custom 
  143. mdCloseInterface
  144. mdOpenInterface
  145. mdGetButtonClicked
  146. mdSetInterfaceNo
  147. Window 
  148. mdHide
  149.  ( INT
  150. mdShow
  151. mdHideVideo
  152. mdShowVideo
  153. mdHideCtrl
  154. mdShowCtrl
  155. Parameter Setting 
  156.  mdSetClip
  157.  mdSetWinPos
  158.  mdSetWinSize
  159.  mdSetVideoWinPos
  160. ( INT, 
  161.      mdSetVideoWinSize
  162. * mdSetCtrlWinPos
  163. H mdSetCtrlWinSize
  164. f mdSetWindowMoveable
  165.  mdSetWindowInteractive
  166.  mdSetAudioLevel
  167.  mdSetAudioMute
  168.  mdSetCtrlType
  169. INT mdSetWinBottom
  170. "NewParent
  171. 8ClippingRegion
  172. _VideoWindowAspect
  173. yVideoAspect
  174. VideoOffset
  175. VideoPalette
  176. KeyColor
  177. PlaybackSpeed
  178. ActivePalette
  179. PlayRepeat
  180. ParamDirect
  181. TimeFormat
  182. Information 
  183. mdGetFileType
  184. mdGetWindowHandle
  185. mdGetCtrlWindowHandle ( 
  186.      mdGetDeviceId
  187. mdGetFrame
  188. mdGetClipFrame
  189. mdGetLength
  190. mdGetClipLength
  191. mdGetDisplayState
  192. mdGetWinX
  193. mdGetWinY
  194. mdGetWinWidth
  195. mdGetWinHeight
  196. mdGetVideoWinX
  197. mdGetVideoWinY
  198. mdGetVideoWinWidth
  199. mdGetVideoWinHeight
  200. mdGetCtrlWinX
  201. mdGetCtrlWinY
  202. mdGetCtrlWinWidth
  203. mdGetAreaClicked
  204. mdGetOpenFileCount
  205. mdGetFrameRate
  206. mdGetPlayedStatus
  207. mdGetVolumeLevel
  208. mdGetVideoImage
  209. mdGetFileName
  210. mdGetFramesSkipped
  211. mdGetXPosClicked
  212. mdGetYPosClicked
  213. mdGetVersion
  214. mdGetVideoPalette
  215. Graphic Loading 
  216. Displaying 
  217. mdShowGraphic
  218. mdShowGraphicPos
  219. mdOpenGraphic
  220. mdOpenGraphicKeep
  221. mdCloseGraphic
  222. mdHideGraphic
  223. mdDisplayGraphic
  224. Cursor 
  225. VideoCursor
  226. CtrlCursor
  227. ResetCursor
  228. ResetVideoCursor
  229. ResetCtrlCursor
  230. Miscellaneous 
  231.  mdTimedDelay
  232. ( FLOAT )
  233.  mdFileDoesNotExist
  234.  mdFileDoesExist
  235.  mdDisplayErrorMsgs
  236.  mdAbout
  237.  mdMCISendString
  238.  mdCDEject
  239. -- ***
  240.  Record Procedures (5)
  241.  *** 
  242.  mdWaveRecordInit
  243.  mdWaveClose
  244.  mdWaveRecordSave
  245.  mdWaveRecordPlayback
  246. -- ***
  247.  Handling
  248.  mdGetErrorNumber
  249.  mdGetErrorText
  250.  mdLogErrors
  251. openAV
  252. pauseAV
  253. enterbook
  254. exitbook
  255. getVideoFile
  256. closeAV
  257. GetAVStatus
  258. playAV
  259. linkMediaDynamicsDLL
  260. enterbook
  261. klinkMediaDynamicsDLL
  262. tbkdlg.dll
  263. OpenDlg
  264.                     
  265. SetFocus
  266. MediaDynamics
  267. open a/v
  268. MediaDynamics
  269. close a/v
  270. MediaDynamics
  271. play a/v
  272. MediaDynamics
  273. pause a/v
  274. MediaDynamics
  275. buttondown
  276. Import
  277. Export
  278. PrintReport
  279. newPage
  280. Tutorial
  281. Keyboard
  282. Commands
  283. UsingHelp
  284. Glossary
  285. Index
  286. openAV
  287. buttonDown
  288. Open_Btn
  289. closeAV
  290. buttonUp
  291. Close_Btn
  292. playAV
  293. buttonUp
  294. Play_Btn
  295. pauseAV
  296. buttonUp
  297. Pause_Btn
  298. exitbook
  299. mdCtrl.dll
  300. tbkdlg.dll
  301. getVideoFile
  302. *.avi
  303. Select a video file.
  304. Select Video File
  305. OpenDlg
  306. Open_Btn
  307. fileName
  308. buttonDown
  309. Open_Btn
  310. FileNameIn
  311. GetAVStatus
  312. mdGetPlayState
  313. closed
  314. playing
  315. seeking
  316. paused
  317. stopped
  318. FileHandle
  319. AVState
  320. linkMediaDynamicsDLL
  321. mdCtrl.dll
  322. mdOpen
  323. mdOpenLite
  324. mdClose
  325. mdPlay
  326. mdPause
  327. mdStep
  328. mdStop
  329. mdGotoFrame
  330. mdRewind
  331. mdRestart
  332. mdOpenDevice
  333. mdCloseDevice
  334. mdCloseInterface
  335. mdOpenInterface
  336. mdGetButtonClicked
  337. mdSetInterfaceNo
  338. mdHide
  339. mdShow
  340. mdHideVideo
  341. mdShowVideo
  342. mdHideCtrl
  343. mdShowCtrl
  344. mdSetClip
  345. mdSetWinPos
  346. mdSetWinSize
  347. mdSetVideoWinPos
  348. mdSetVideoWinSize
  349. mdSetCtrlWinPos
  350. mdSetCtrlWinSize
  351. mdSetWindowMoveable
  352. mdSetWindowInteractive
  353. mdSetAudioLevel
  354. mdSetAudioMute
  355. mdSetCtrlType
  356. mdSetWinBottom
  357. mdSetWinTop
  358. mdSetNewParent
  359. mdSetClippingRegion
  360. mdSetVideoWindowAspect
  361. mdSetVideoAspect
  362. mdSetVideoOffset
  363. mdSetVideoPalette
  364. mdSetKeyColor
  365. mdSetPlaybackSpeed
  366. mdSetActivePalette
  367. mdSetPlayRepeat
  368. mdSetParamDirect
  369. mdSetTimeFormat
  370. mdGetFileType
  371. mdGetWindowHandle
  372. mdGetCtrlWindowHandle
  373. mdGetDeviceId
  374. mdGetFrame
  375. mdGetClipFrame
  376. mdGetLength
  377. mdGetClipLength
  378. mdGetPlayState
  379. mdGetDisplayState
  380. mdGetWinX
  381. mdGetWinY
  382. mdGetWinWidth
  383. mdGetWinHeight
  384. mdGetVideoWinX
  385. mdGetVideoWinY
  386. mdGetVideoWinWidth
  387. mdGetVideoWinHeight
  388. mdGetCtrlWinX
  389. mdGetCtrlWinY
  390. mdGetCtrlWinWidth
  391. mdGetAreaClicked
  392. mdGetOpenFileCount
  393. mdGetFrameRate
  394. mdGetPlayedStatus
  395. mdGetVolumeLevel
  396. mdGetVideoImage
  397. mdGetFileName
  398. mdGetFramesSkipped
  399. mdGetXPosClicked
  400. mdGetYPosClicked
  401. mdGetVersion
  402. mdGetVideoPalette
  403. mdShowGraphic
  404. mdShowGraphicPos
  405. mdOpenGraphic
  406. mdOpenGraphicKeep
  407. mdCloseGraphic
  408. mdHideGraphic
  409. mdDisplayGraphic
  410. mdSetCursor
  411. mdSetVideoCursor
  412. mdSetCtrlCursor
  413. mdResetCursor
  414. mdResetVideoCursor
  415. mdResetCtrlCursor
  416. mdTimedDelay
  417. mdFileDoesNotExist
  418. mdFileDoesExist
  419. mdDisplayErrorMsgs
  420. mdAbout
  421. mdMCISendString
  422. mdCDEject
  423. mdWaveRecordInit
  424. mdWaveClose
  425. mdWaveRecord
  426. mdWaveRecordSave
  427. mdWaveRecordPlayback
  428. mdGetErrorNumber
  429. mdGetErrorText
  430. mdLogErrors
  431. uttondown
  432. 0BringToFront
  433. origmX
  434. origmY
  435. origpY
  436. origpX
  437. mouseLoc
  438. buttonStillDown
  439. origmX
  440. origmY
  441. origpX
  442. origpY
  443. mouseLoc
  444. Set Functions
  445. miscellaneous
  446. +txclassname
  447. 3DFrame Recessed
  448. gFrame
  449. frame
  450. gDisplay
  451. display state
  452. Gposition
  453. video position
  454. gPlay
  455. play state
  456. gAnswer
  457. 360,40g bar
  458. gFileLen
  459. file length
  460. gClipLen
  461. clip length
  462. gEveryX
  463.    "  every       sec(s)
  464. delay
  465. EmouseLoc
  466. 4origmX,origmY,origpY,origpX
  467. BringToFront
  468. mouseLeave
  469. mouseEnter
  470. buttondown
  471. buttonStillDown
  472. mouseEnter
  473. mouseLeave
  474. buttondown
  475. 0BringToFront
  476. origmX
  477. origmY
  478. origpY
  479. origpX
  480. mouseLoc
  481. buttonStillDown
  482. origmX
  483. origmY
  484. origpX
  485. origpY
  486. mouseLoc
  487. Get Functions
  488. GVidres
  489. video resolution
  490. 4txclassname
  491. 3DFrame Recessed
  492. control
  493. GotoFr_Btn
  494. 4FileHandle
  495. gotoFrame 
  496. mdGotoFrame(
  497. let jump occur
  498. mdTimedDelay(.3)
  499.     -- update frame status
  500. "Get"
  501. B"gFrame" 
  502. buttonDown
  503. buttonDown
  504. gotoFrame
  505. mdGotoFrame
  506. 333333
  507. mdTimedDelay
  508. buttondown
  509. gFrame
  510. buttonup
  511. gotoFrame
  512. FileHandle
  513. goto frame
  514. EmouseLoc
  515. 4origmX,origmY,origpY,origpX
  516. "control"
  517. BringToFront
  518. mouseLeave
  519. mouseEnter
  520. buttondown
  521. buttonStillDown
  522. mouseEnter
  523. mouseLeave
  524. buttondown
  525. control
  526. 0BringToFront
  527. control
  528. control
  529. origmX
  530. origmY
  531. origpY
  532. origpX
  533. mouseLoc
  534. buttonStillDown
  535. control
  536. origmX
  537. origmY
  538. origpX
  539. origpY
  540. mouseLoc
  541. Control Functions
  542. Play_Btn
  543. 4FileHandle,AVState,CurrFrame
  544. mdPlay(
  545. & 0) 
  546. B"gEveryX" 
  547. delay 
  548.             -- 
  549. Current 
  550. mdGetFrame(
  551. "gAnswer" 
  552.             --
  553. wait 
  554. mdTimedDelay(
  555.             -- update status
  556. GetAVStatus        
  557. x"playing") 
  558. let file 
  559. B"gPlay" 
  560. buttonup
  561. buttonup
  562. mdPlay
  563. gEveryX
  564. delay
  565. mdGetFrame
  566. gAnswer
  567. mdTimedDelay
  568. GetAVStatus
  569. playing
  570. gEveryX
  571. 333333
  572. mdTimedDelay
  573. buttondown
  574. gPlay
  575. buttonup
  576. delay
  577. FileHandle
  578. AVState
  579. CurrFrame
  580. Pause_Btn
  581. 4FileHandle
  582. mdPause(
  583. let file 
  584. mdTimedDelay(.3)
  585. "Get"
  586. B"gPlay" 
  587. buttonup
  588. buttonup
  589. mdPause
  590. 333333
  591. mdTimedDelay
  592. buttondown
  593. gPlay
  594. buttonup
  595. FileHandle
  596. Pause
  597. Step_Btn
  598. 4FileHandle,AVState
  599.     -- update status
  600. GetAVStatus        
  601. x"playing") 
  602. x"closed")
  603. mdStep(
  604. i)         
  605.         -- 
  606. ]frame #
  607. B"gFrame" 
  608. buttonup
  609. buttonup
  610. GetAVStatus
  611. playing
  612. closed
  613. mdStep
  614. buttondown
  615. gFrame
  616. buttonup
  617. FileHandle
  618. AVState
  619. gotoFrame
  620. hideAll
  621. 4FileHandle
  622. B"showAll" 
  623. mdHide(
  624.         -- update display status
  625. B"gDisplay" 
  626. buttondown
  627. buttondown
  628. showAll
  629. mdHide
  630. buttondown
  631. gDisplay
  632. buttonup
  633. FileHandle
  634. 25rEu
  635. showAll
  636. 4FileHandle
  637. B"hideAll" 
  638. mdShow(
  639.         -- update display status
  640. B"gDisplay" 
  641. buttondown
  642. buttondown
  643. hideAll
  644. mdShow
  645. buttondown
  646. gDisplay
  647. buttonup
  648. FileHandle
  649. video & control
  650. hideCtrl
  651. 4FileHandle
  652. B"showCtrl" 
  653. mdHideCtrl(
  654.         -- update display status
  655. B"gDisplay" 
  656. buttondown
  657. buttondown
  658. showCtrl
  659. mdHideCtrl
  660. buttondown
  661. gDisplay
  662. buttonup
  663. FileHandle
  664. showCtrl
  665. 4FileHandle
  666. B"hideCtrl" 
  667. mdShowCtrl(
  668.         -- update display status
  669. B"gDisplay" 
  670. buttondown
  671. buttondown
  672. hideCtrl
  673. mdShowCtrl
  674. buttondown
  675. gDisplay
  676. buttonup
  677. FileHandle
  678. control bar only
  679. hideVideo
  680. 4FileHandle
  681. B"showVideo" 
  682. mdHideVideo(
  683.         -- update display status
  684. B"gDisplay" 
  685. buttondown
  686. buttondown
  687. showVideo
  688. mdHideVideo
  689. buttondown
  690. gDisplay
  691. buttonup
  692. FileHandle
  693. showVideo
  694. 4FileHandle
  695. B"hideVideo" 
  696. mdShowVideo(
  697.         -- update display status
  698. B"gDisplay" 
  699. buttondown
  700. buttondown
  701. hideVideo
  702. mdShowVideo
  703. buttondown
  704. gDisplay
  705. buttonup
  706. FileHandle
  707. video only
  708. vOtxclassname
  709. 3DFrame Recessed
  710. 4fileHandle,currFrame,dispState,AVState,clipLength,fileLength
  711. B"gPosition" 
  712. work1 
  713. mdGetVideoWinX(FileHandle)
  714. work2 
  715. mdGetVideoWinY(
  716. "gAnswer" 
  717. K& "," & 
  718. B"gDisplay" 
  719. mdGetDisplayState(
  720. DispState 
  721. "video"
  722. "control bar"
  723. B"gPlay" 
  724. getAVStatus
  725. B"gFrame" 
  726. CurrFrame 
  727. mdGetFrame(
  728. B"gClipLen" 
  729. mdGetClipLength(
  730. B"gFileLen" 
  731. mdGetLength(
  732. B"gEveryX" 
  733.     -- update status
  734. GetAVStatus        
  735. "playing"    
  736. delay 
  737.             -- 
  738. Current 
  739.             --
  740. wait 
  741. mdTimedDelay(
  742.             -- 
  743. B"gVidRes" 
  744. mdGetVideoWinWidth(
  745. mdGetVideoWinHeight(
  746. & "," & 
  747. buttondown
  748. buttonUp
  749. buttondown
  750. buttonUp
  751. gPosition
  752. FileHandle
  753. mdGetVideoWinX
  754. FileHandle
  755. mdGetVideoWinY
  756. gAnswer
  757. gDisplay
  758. FileHandle
  759. mdGetDisplayState
  760. DispState
  761. DispState
  762. video
  763. DispState
  764. control bar
  765. DispState
  766. gAnswer
  767. DispState
  768. gPlay
  769. getAVStatus
  770. gAnswer
  771. gFrame
  772. CurrFrame
  773. FileHandle
  774. mdGetFrame
  775. gAnswer
  776. CurrFrame
  777. gClipLen
  778. FileHandle
  779. mdGetClipLength
  780. gAnswer
  781. gFileLen
  782. FileHandle
  783. mdGetLength
  784. gAnswer
  785. gEveryX
  786. GetAVStatus
  787. playing
  788. delay
  789. CurrFrame
  790. FileHandle
  791. mdGetFrame
  792. gAnswer
  793. CurrFrame
  794. mdTimedDelay
  795. GetAVStatus
  796. playing
  797. gEveryX
  798. gVidRes
  799. FileHandle
  800. mdGetVideoWinWidth
  801. FileHandle
  802. mdGetVideoWinHeight
  803. gAnswer
  804. delay
  805. work2
  806. work1
  807. fileHandle
  808. currFrame
  809. dispState
  810. AVState
  811. clipLength
  812. fileLength
  813. --    The following are the scripts 
  814. "Control"
  815. --        play 
  816. 4FileHandle,AVState,CurrFrame
  817. mdPlay(
  818. ( 0) 
  819. B"gEveryX" 
  820. delay 
  821. --            -- 
  822. Current 
  823. --            
  824. mdGetFrame(
  825. --            
  826. "gAnswer" 
  827. --            --
  828. wait 
  829. --            
  830. mdTimedDelay(
  831. --            -- update status
  832. --            
  833. GetAVStatus        
  834. x"playing") 
  835. --        --
  836. let file 
  837. B"gPlay" 
  838. mdPause(
  839. --    --
  840. "Get"
  841. --    -- 
  842. x"closed")
  843. mdStep(
  844. --        -- 
  845. frame #
  846. B"gFrame" 
  847. --        goto 
  848. gotoFrame 
  849. mdGotoFrame(
  850. --    --
  851. jump occur
  852. --    -- 
  853. --        Hide & Show
  854. video & control
  855. B"showAll" 
  856. mdHide(
  857. --         
  858. --         -- 
  859. display 
  860. B"gDisplay" 
  861. B"hideAll" 
  862. mdShow(
  863. --         -- 
  864. B"showVideo" 
  865. mdHideVideo(
  866. --         
  867. --        -- 
  868. B"hideVideo" 
  869. mdShowVideo(
  870. --         -- 
  871.  bar 
  872. B"showCtrl" 
  873. mdHideCtrl(
  874. --         
  875. --        -- 
  876. B"hideCtrl" 
  877. mdShowCtrl(
  878. --         -- 
  879. --    The following are the pushbutton scripts 
  880. Video & Control
  881. 4FileHandle
  882. xcoor 
  883. ycoor 
  884. mdSetWinPos(
  885. --    --
  886. update 
  887. 'Get' 
  888. B"gPosition" 
  889. winWidth 
  890. winHeight 
  891. mdSetWinSize(
  892. "xVideoCoor"
  893. "yVideoCoor"
  894. mdSetVideoWinPos(
  895. --    --
  896. videoWinWidth 
  897. videoWinHeight 
  898. mdSetVideoWinSize(
  899.  bar 
  900. CtrlXcoor 
  901. CtrlYcoor 
  902. mdSetCtrlWinPos(
  903. CtrlWidth 
  904. mdSetCtrlWinSize(
  905. Miscellaneous
  906. startFrame 
  907. endFrame
  908. mdSetClip(
  909. --    --
  910. q length
  911. B"gClipLen" 
  912. --        mute/audio on
  913. mdSetAudioLevel(
  914. ,100) 
  915. emoveable
  916. mdSetWindowMoveable(
  917. linkMediaDynamicsDLL
  918. sysDrawDirect 
  919.     linkDLL "tbkdlg.dll"
  920.     STRING OpenDlg(
  921. 6USER"
  922.         WORD SetFocus(
  923. a/v" 
  924. "close a/v" 
  925. "play a/v" 
  926. a/v" 
  927. "Import" 
  928. "Export" 
  929. "PrintReport" 
  930. "Tutorial" 
  931. "Keyboard" 
  932. "Commands" 
  933. "UsingHelp" 
  934. "Glossary" 
  935. "Index" 
  936. openAV
  937. B"Open_Btn"
  938. closeAV
  939. B"Close_Btn"
  940. playAV
  941. B"Play_Btn"
  942. pauseAV
  943. B"Pause_Btn"
  944. exitbook
  945.     unlinkDLL "mdCtrl.
  946. getVideoFile
  947. ".", "*.avi", "Select a video file.", "
  948. fileName 
  949. FileNameIn 
  950. GetAVStatus
  951. 4FileHandle,AVState
  952. mdGetPlayState(
  953. "closed"
  954. "playing"
  955. "seeking"
  956. "paused"
  957. "stopped"
  958. "playState" 
  959.     INT mdOpen(
  960. , LONG, 
  961. LStep(
  962. cHide(
  963. nShow(
  964. zHideVideo(
  965. ShowVideo(
  966. HideCtrl(
  967. ShowCtrl(
  968.     -- Parameter setting functions 
  969. subroutines
  970. GotoFrame(
  971. SetClip(INT,
  972. SetWinPos(
  973. SetWinSize(
  974. SetVideoWinPos(
  975. SetVideoWinSize(
  976. SetCtrlWinPos(
  977. SetCtrlWinSize(
  978. SetCtrlType(
  979. SetWindowMoveable(
  980. SetAudioLevel(
  981.     -- Information Functions 
  982. Subroutines
  983.  mdGetFrame(INT)
  984.  mdGetClipFrame(
  985. GetDisplayState(
  986.  mdGetLength(
  987.  mdGetClipLength(
  988. GetWinX(
  989. GetWinY(
  990. GetWinWidth(
  991. GetWinHeight(
  992. GetVideoWinX(
  993. GetVideoWinY(
  994. GetVideoWinWidth(
  995. GetVideoWinHeight(
  996. GetCtrlWinX(
  997. GetCtrlWinY(
  998. GetCtrlWinWidth(
  999.     -- Miscellaneous 
  1000. TimedDelay(FLOAT)
  1001. FileDoesNotExist(
  1002. openAV
  1003. pauseAV
  1004. enterbook
  1005. exitbook
  1006. getVideoFile
  1007. closeAV
  1008. GetAVStatus
  1009. playAV
  1010. linkMediaDynamicsDLL
  1011. enterbook
  1012. klinkMediaDynamicsDLL
  1013. tbkdlg.dll
  1014. OpenDlg
  1015.                     
  1016. SetFocus
  1017. MediaDynamics
  1018. open a/v
  1019. MediaDynamics
  1020. close a/v
  1021. MediaDynamics
  1022. play a/v
  1023. MediaDynamics
  1024. pause a/v
  1025. MediaDynamics
  1026. buttondown
  1027. Import
  1028. Export
  1029. PrintReport
  1030. newPage
  1031. Tutorial
  1032. Keyboard
  1033. Commands
  1034. UsingHelp
  1035. Glossary
  1036. Index
  1037. openAV
  1038. buttonDown
  1039. Open_Btn
  1040. closeAV
  1041. buttonUp
  1042. Close_Btn
  1043. playAV
  1044. buttonUp
  1045. Play_Btn
  1046. pauseAV
  1047. buttonUp
  1048. Pause_Btn
  1049. exitbook
  1050. mdCtrl.dll
  1051. tbkdlg.dll
  1052. getVideoFile
  1053. *.avi
  1054. Select a video file.
  1055. Select Video File
  1056. OpenDlg
  1057. Open_Btn
  1058. fileName
  1059. buttonDown
  1060. Open_Btn
  1061. FileNameIn
  1062. GetAVStatus
  1063. mdGetPlayState
  1064. closed
  1065. playing
  1066. seeking
  1067. paused
  1068. stopped
  1069. FileHandle
  1070. AVState
  1071. linkMediaDynamicsDLL
  1072. mdCtrl.dll
  1073. mdOpen
  1074. mdClose
  1075. mdPlay
  1076. mdStep
  1077. mdPause
  1078. mdHide
  1079. mdShow
  1080. mdHideVideo
  1081. mdShowVideo
  1082. mdHideCtrl
  1083. mdShowCtrl
  1084. mdGotoFrame
  1085. mdSetClip
  1086. mdSetWinPos
  1087. mdSetWinSize
  1088. mdSetVideoWinPos
  1089. mdSetVideoWinSize
  1090. mdSetCtrlWinPos
  1091. mdSetCtrlWinSize
  1092. mdSetCtrlType
  1093. mdSetWindowMoveable
  1094. mdSetAudioLevel
  1095. mdGetFrame
  1096. mdGetClipFrame
  1097. mdGetPlayState
  1098. mdGetDisplayState
  1099. mdGetLength
  1100. mdGetClipLength
  1101. mdGetWinX
  1102. mdGetWinY
  1103. mdGetWinWidth
  1104. mdGetWinHeight
  1105. mdGetVideoWinX
  1106. mdGetVideoWinY
  1107. mdGetVideoWinWidth
  1108. mdGetVideoWinHeight
  1109. mdGetCtrlWinX
  1110. mdGetCtrlWinY
  1111. mdGetCtrlWinWidth
  1112. mdTimedDelay
  1113. mdFileDoesNotExist
  1114. )O5?,
  1115. F,25f
  1116. Open_Btn
  1117. 4FileHandle
  1118. ofilename 
  1119. FileNameIn
  1120. xCoor 
  1121. yCoor 
  1122. B"ctrlModeless" 
  1123. B"ctrlModal" 
  1124. B"ctrlMlessNoCB" 
  1125. mdOpen(sysclienthandle, (
  1126. , 10, 0, 0, 0, 2, 0) 
  1127. B"Move_Btn" 
  1128. mdSetWindowMoveable(
  1129. mdTimedDelay(.3)
  1130. "Get"
  1131. B"gPlay" 
  1132. SetFocus(sysClientHandle)
  1133. buttonDown
  1134. buttonDown
  1135. filename
  1136. xCoor
  1137. yCoor
  1138. ctrlModeless
  1139. ctrlModeless
  1140. ctrlModal
  1141. ctrlMlessNoCB
  1142. filename
  1143. mdOpen
  1144. Move_Btn
  1145. mdSetWindowMoveable
  1146. 333333
  1147. mdTimedDelay
  1148. buttondown
  1149. gPlay
  1150. buttonup
  1151. yCoor
  1152. xCoor
  1153. FileNameIn
  1154. FileHandle
  1155. PfileName
  1156. C:\mv0101.avi
  1157. Close_Btn
  1158. 4FileHandle
  1159. mdClose(
  1160. let file close
  1161. mdTimedDelay(.3)
  1162. "Get"
  1163. B"gPlay" 
  1164. buttonup
  1165. buttonup
  1166. mdClose
  1167. 333333
  1168. mdTimedDelay
  1169. buttondown
  1170. gPlay
  1171. buttonup
  1172. FileHandle
  1173. Close
  1174. Browse_Btn
  1175. getVideoFile
  1176. FileNameIn 
  1177. fileName 
  1178. B"Open_Btn"
  1179. buttondown
  1180. buttondown
  1181. getVideoFile
  1182. Open_Btn
  1183. fileName
  1184. FileNameIn
  1185.     fileName
  1186. C:\SONY\VIDEO\grabme2.avi
  1187. browse
  1188. txclassname
  1189. 3DFrame Recessed
  1190. FileNameIn
  1191. C:\mv0101.avie Name Here
  1192. buttondown
  1193. buttondown
  1194. buttondown
  1195. buttondown
  1196. ctrlModeless
  1197. modeless
  1198. ctrlMlessNoCB
  1199. no control
  1200. ctrlModal
  1201. modal
  1202. 4FileHandle
  1203. B"ctrlModal" 
  1204. mdSetCtrlType(
  1205. B"ctrlModeless" 
  1206. B"ctrlMlessNoCB" 
  1207. buttondown
  1208. buttondown
  1209. ctrlModal
  1210. mdSetCtrlType
  1211. ctrlModeless
  1212. mdSetCtrlType
  1213. ctrlMlessNoCB
  1214. mdSetCtrlType
  1215. FileHandle
  1216. ctrlWidth
  1217. 4FileHandle
  1218. CtrlWidth 
  1219. mdSetCtrlWinSize(
  1220. buttonDown
  1221. buttonDown
  1222. CtrlWidth
  1223. mdSetCtrlWinSize
  1224. CtrlWidth
  1225. FileHandle
  1226. ctrlXCoor
  1227. ctrlYCoor
  1228. 4FileHandle
  1229. CtrlXcoor 
  1230. CtrlYcoor 
  1231. mdSetCtrlWinPos(
  1232. buttonDown
  1233. buttonDown
  1234. CtrlXcoor
  1235. CtrlYcoor
  1236. mdSetCtrlWinPos
  1237. CtrlYcoor
  1238. CtrlXcoor
  1239. FileHandle
  1240. position
  1241. Mute_Btn
  1242. 4FileHandle
  1243. "mute"    
  1244. mdSetAudioLevel(
  1245. .,0) 
  1246. "audio on"
  1247. U,100) 
  1248. buttonup
  1249. buttonup
  1250. mdSetAudioLevel
  1251. audio on
  1252. mdSetAudioLevel
  1253. FileHandle
  1254. audio on
  1255. winWidth
  1256. winHeight
  1257. 4FileHandle
  1258. winWidth 
  1259. winHeight 
  1260. mdSetWinSize(
  1261. buttonDown
  1262. buttonDown
  1263. winWidth
  1264. winHeight
  1265. mdSetWinSize
  1266. winHeight
  1267. winWidth
  1268. FileHandle
  1269. startFrame
  1270. EndFrame
  1271. 4FileHandle
  1272. startFrame 
  1273. endFrame
  1274. mdSetClip(
  1275. update clip length
  1276. B"gClipLen" 
  1277. buttonDown
  1278. buttonDown
  1279. startFrame
  1280. endFrame
  1281. mdSetClip
  1282. buttondown
  1283. gClipLen
  1284. buttonup
  1285. endFrame
  1286. startFrame
  1287. FileHandle
  1288. clip len
  1289. xCoor
  1290. yCoor
  1291. 4FileHandle
  1292. xcoor 
  1293. ycoor
  1294. mdSetWinPos(
  1295. update 
  1296. B"gPosition" 
  1297. buttonDown
  1298. buttonDown
  1299. xcoor
  1300. ycoor
  1301. mdSetWinPos
  1302. buttondown
  1303. gPosition
  1304. buttonup
  1305. ycoor
  1306. xcoor
  1307. FileHandle
  1308. position
  1309. Move_Btn
  1310. 4FileHandle
  1311. mdSetWindowMoveable(
  1312. buttondown
  1313. buttondown
  1314. mdSetWindowMoveable
  1315. mdSetWindowMoveable
  1316. FileHandle
  1317. make moveable
  1318. videoWinWidth
  1319. videoWinHeight
  1320. 4FileHandle
  1321. videoWinWidth 
  1322. videoWinHeight 
  1323. mdSetVideoWinSize(
  1324. buttonDown
  1325. buttonDown
  1326. videoWinWidth
  1327. videoWinHeight
  1328. mdSetVideoWinSize
  1329. videoWinHeight
  1330. videoWinWidth
  1331. FileHandle
  1332. xVideoCoor
  1333. yVideoCoor
  1334. 4FileHandle
  1335. xcoor 
  1336. "xVideoCoor"
  1337. ycoor 
  1338. "yVideoCoor"
  1339. mdSetVideoWinPos(
  1340. update 
  1341. B"gPosition" 
  1342. buttonDown
  1343. buttonDown
  1344. xVideoCoor
  1345. yVideoCoor
  1346. mdSetVideoWinPos
  1347. buttondown
  1348. gPosition
  1349. buttonup
  1350. ycoor
  1351. xcoor
  1352. FileHandle
  1353. position
  1354. video & controltt
  1355. video onlyntroltt
  1356. control bar onlyt
  1357. EmouseLoc
  1358. 4origmX,origmY,origpY,origpX
  1359. BringToFront
  1360. mouseLeave
  1361. mouseEnter
  1362. buttondown
  1363. buttonStillDown
  1364. mouseEnter
  1365. mouseLeave
  1366. buttondown
  1367. 0BringToFront
  1368. origmX
  1369. origmY
  1370. origpY
  1371. origpX
  1372. mouseLoc
  1373. buttonStillDown
  1374. origmX
  1375. origmY
  1376. origpX
  1377. origpY
  1378. mouseLoc
  1379. Set Functions
  1380. miscellaneous
  1381. +txclassname
  1382. 3DFrame Recessed
  1383. gFrame
  1384. frame
  1385. gDisplay
  1386. display state
  1387. Gposition
  1388. video position
  1389. gPlay
  1390. play state
  1391. gAnswer
  1392. closedg bar
  1393. gFileLen
  1394. file length
  1395. gClipLen
  1396. clip length
  1397. gEveryX
  1398.    "  every       sec(s)
  1399. delay
  1400. EmouseLoc
  1401. 4origmX,origmY,origpY,origpX
  1402. BringToFront
  1403. mouseLeave
  1404. mouseEnter
  1405. buttondown
  1406. buttonStillDown
  1407. mouseEnter
  1408. mouseLeave
  1409. buttondown
  1410. 0BringToFront
  1411. origmX
  1412. origmY
  1413. origpY
  1414. origpX
  1415. mouseLoc
  1416. buttonStillDown
  1417. origmX
  1418. origmY
  1419. origpX
  1420. origpY
  1421. mouseLoc
  1422. Get Functions
  1423. GVidres
  1424. video resolution
  1425. 4txclassname
  1426. 3DFrame Recessed
  1427. control
  1428. GotoFr_Btn
  1429. 4FileHandle
  1430. gotoFrame 
  1431. mdGotoFrame(
  1432. let jump occur
  1433. mdTimedDelay(.3)
  1434.     -- update frame status
  1435. "Get"
  1436. B"gFrame" 
  1437. buttonDown
  1438. buttonDown
  1439. gotoFrame
  1440. mdGotoFrame
  1441. 333333
  1442. mdTimedDelay
  1443. buttondown
  1444. gFrame
  1445. buttonup
  1446. gotoFrame
  1447. FileHandle
  1448. goto frame
  1449. EmouseLoc
  1450. 4origmX,origmY,origpY,origpX
  1451. "control"
  1452. BringToFront
  1453. mouseLeave
  1454. mouseEnter
  1455. buttondown
  1456. buttonStillDown
  1457. mouseEnter
  1458. mouseLeave
  1459. buttondown
  1460. control
  1461. 0BringToFront
  1462. control
  1463. control
  1464. origmX
  1465. origmY
  1466. origpY
  1467. origpX
  1468. mouseLoc
  1469. buttonStillDown
  1470. control
  1471. origmX
  1472. origmY
  1473. origpX
  1474. origpY
  1475. mouseLoc
  1476. Control Functions
  1477. Play_Btn
  1478. 4FileHandle,AVState,CurrFrame
  1479. mdPlay(
  1480. & 0) 
  1481. B"gEveryX" 
  1482. delay 
  1483.             -- 
  1484. Current 
  1485. mdGetFrame(
  1486. "gAnswer" 
  1487.             --
  1488. wait 
  1489. mdTimedDelay(
  1490.             -- update status
  1491. GetAVStatus        
  1492. x"playing") 
  1493. let file 
  1494. B"gPlay" 
  1495. buttonup
  1496. buttonup
  1497. mdPlay
  1498. gEveryX
  1499. delay
  1500. mdGetFrame
  1501. gAnswer
  1502. mdTimedDelay
  1503. GetAVStatus
  1504. playing
  1505. gEveryX
  1506. 333333
  1507. mdTimedDelay
  1508. buttondown
  1509. gPlay
  1510. buttonup
  1511. delay
  1512. FileHandle
  1513. AVState
  1514. CurrFrame
  1515. Pause_Btn
  1516. 4FileHandle
  1517. mdPause(
  1518. let file 
  1519. mdTimedDelay(.3)
  1520. "Get"
  1521. B"gPlay" 
  1522. buttonup
  1523. buttonup
  1524. mdPause
  1525. 333333
  1526. mdTimedDelay
  1527. buttondown
  1528. gPlay
  1529. buttonup
  1530. FileHandle
  1531. Pause
  1532. Step_Btn
  1533. 4FileHandle,AVState
  1534.     -- update status
  1535. GetAVStatus        
  1536. x"playing") 
  1537. x"closed")
  1538. mdStep(
  1539. i)         
  1540.         -- 
  1541. ]frame #
  1542. B"gFrame" 
  1543. buttonup
  1544. buttonup
  1545. GetAVStatus
  1546. playing
  1547. closed
  1548. mdStep
  1549. buttondown
  1550. gFrame
  1551. buttonup
  1552. FileHandle
  1553. AVState
  1554. gotoFrame
  1555. hideAll
  1556. 4FileHandle
  1557. B"showAll" 
  1558. mdHide(
  1559.         -- update display status
  1560. B"gDisplay" 
  1561. buttondown
  1562. buttondown
  1563. showAll
  1564. mdHide
  1565. buttondown
  1566. gDisplay
  1567. buttonup
  1568. FileHandle
  1569. 25rEu
  1570. showAll
  1571. 4FileHandle
  1572. B"hideAll" 
  1573. mdShow(
  1574.         -- update display status
  1575. B"gDisplay" 
  1576. buttondown
  1577. buttondown
  1578. hideAll
  1579. mdShow
  1580. buttondown
  1581. gDisplay
  1582. buttonup
  1583. FileHandle
  1584. video & control
  1585. hideCtrl
  1586. 4FileHandle
  1587. B"showCtrl" 
  1588. mdHideCtrl(
  1589.         -- update display status
  1590. B"gDisplay" 
  1591. buttondown
  1592. buttondown
  1593. showCtrl
  1594. mdHideCtrl
  1595. buttondown
  1596. gDisplay
  1597. buttonup
  1598. FileHandle
  1599. showCtrl
  1600. 4FileHandle
  1601. B"hideCtrl" 
  1602. mdShowCtrl(
  1603.         -- update display status
  1604. B"gDisplay" 
  1605. buttondown
  1606. buttondown
  1607. hideCtrl
  1608. mdShowCtrl
  1609. buttondown
  1610. gDisplay
  1611. buttonup
  1612. FileHandle
  1613. control bar only
  1614. hideVideo
  1615. 4FileHandle
  1616. B"showVideo" 
  1617. mdHideVideo(
  1618.         -- update display status
  1619. B"gDisplay" 
  1620. buttondown
  1621. buttondown
  1622. showVideo
  1623. mdHideVideo
  1624. buttondown
  1625. gDisplay
  1626. buttonup
  1627. FileHandle
  1628. showVideo
  1629. 4FileHandle
  1630. B"hideVideo" 
  1631. mdShowVideo(
  1632.         -- update display status
  1633. B"gDisplay" 
  1634. buttondown
  1635. buttondown
  1636. hideVideo
  1637. mdShowVideo
  1638. buttondown
  1639. gDisplay
  1640. buttonup
  1641. FileHandle
  1642. video only
  1643. 2ObOR
  1644. vOtxclassname
  1645. 3DFrame Recessed
  1646. C:\mv0101.avi
  1647.